package com.aaa.statistics.controller.api;

import com.aaa.statistics.service.RevenueService;
import com.aaa.statistics.vo.RevenueVo;
import com.aaa.vo.Result;
import com.alibaba.fastjson.JSON;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author Lei
 * @create 2023-03-31 19:38
 */
@RestController
@RequestMapping("/statistics/api/revenue")
public class ApiRevenueController {

    @Resource
    private RevenueService revenueService;

    @PostMapping("/queryAllRevenueData")
    public Result<Map<String,Object>> queryAllRevenueData(@RequestBody RevenueVo revenueVo){
        return revenueService.queryAllRevenueData(revenueVo);
    }
}
